#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>

typedef int SLDataType;

struct SeqList
{
	SLDataType* a;
	int size;
	int capacity;
};

typedef struct SeqList SeqList;

void SeqListInit(SeqList* ps);
void SeqListPrint(SeqList* ps);
void SeqListCheckCapacity(SeqList* ps);
void SeqListPushBack(SeqList* ps, SLDataType x);
void SeqListPopBack(SeqList* ps);
void SeqListPushFront(SeqList* ps, SLDataType x);
void SeqListPopFront(SeqList* ps);
void SeqListInsert(SeqList* ps, int pos, SLDataType x);
void SeqListErase(SeqList* ps, int pos);
int SeqListFind(SeqList* ps, SLDataType x);
void Destroy(SeqList* ps);